import styled from "styled-components";
import { useChangeName, useTestAge, useTestName } from 'state'
const Test2 = () => {
    const name = useTestName()
    console.log("test2 执行")
    return (
        <div>{name}</div>
    )
}
export default Test2

export const Test3 = () => {
    const age = useTestAge()

    console.log("test3 执行")
    return (
        <div>test3</div>
    )
}